package MD2Model;

/**
 * 	The Animation class keep the start frame and the end frame of
 * an action of the model.
 */
public class Animation {
	private int _frameStart = 0;
	private int _frameEnd = 0;
	private String _name = "";
	
	/**
	 * Constructor with two parameters
	 * @param frameStart the start frame of the animation
	 * @param name	the name of the animation
	 */
	public Animation (int frameStart, String name){
		_frameStart = frameStart;
		_name = name;
	}
	
	/**
	 * get start index
	 * @return _frameStart;
	 */
	public int GetFrameStart (){
		return _frameStart;
	}
	
	/**
	 * set start index
	 * @param frame one int variable tell the index of the start frame of animation
	 */
	public void SetFrameEnd (int frame){
		_frameEnd = frame;
	}
	
	/**
	 * get the last index
	 * @return _frameEnd
	 */
	public int GetFrameEnd (){
		return _frameEnd;
	}
	
	/**
	 * Get the name of this animation.
	 * @return _name
	 */
	public String GetName (){
		return _name;
	}
}
